<%@page pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/views/common/taglibs-include.jsp"%>
<div id="sidebar" class="sidebar responsive">
				<script type="text/javascript">
					try {
						ace.settings.check('sidebar', 'fixed')
					} catch (e) {}
				</script>
				<ul style="top: 0px;" class="nav nav-list">
					<c:set  var="currModule" value="${sys:module(pageContext.request)}" scope="request"/>
					<c:set  var="firstPageModule" value="<c:url value='/welcome.do' />" scope="request"/>
					<li class="${currModule==null || currModule == '' ? 'active' : currModule == firstPageModule ? 'active' : '' }">
						<a href="<c:url value='/welcome.do' />">
							<i class="menu-icon fa fa-tachometer"></i> 首页
						</a>
						<b class="arrow"></b>
					</li>
					<c:forEach items="${menus}" var="menu">
					<c:set var="isChecked" value="${sys:checked(1, currModule, menu.moduleCode)}" scope="request"/>
					<li class="hsub ${isChecked ? "open active" : ""}">
						<a href="<c:if test="${menu.hasSub}">javascript:;</c:if><c:if test="${!menu.hasSub}"><c:url value="${menu.moduleUrl}"/></c:if>" class="dropdown-toggle">
							<i class="menu-icon fa fa-desktop"></i>
							<span class="menu-text">${menu.moduleName}</span>

							<b class="arrow fa fa-angle-down"></b>
						</a>

						<b class="arrow"></b>

						<c:if test="${menu.hasSub}">
	                        <c:set var="submenus" value="${menu.childs}" scope="request"/>
	                        <c:set var="level" value="2" scope="request"/>
                        	<c:import url="/WEB-INF/views/decorators/submenu.jsp"/>
                    	</c:if>
					</li>
					</c:forEach>
				</ul>
				<div class="sidebar-toggle sidebar-collapse" id="sidebar-collapse">
					<i class="ace-icon fa fa-angle-double-left" data-icon1="ace-icon fa fa-angle-double-left" data-icon2="ace-icon fa fa-angle-double-right"></i>
				</div>
			</div>